﻿using System;
using UnityEngine;

namespace RootMotion.FinalIK
{
	// Token: 0x0200013C RID: 316
	[Serializable]
	public class ConstraintPosition : Constraint
	{
		// Token: 0x060004C1 RID: 1217 RVA: 0x00014F73 File Offset: 0x00013373
		public ConstraintPosition()
		{
		}

		// Token: 0x060004C2 RID: 1218 RVA: 0x00014F7B File Offset: 0x0001337B
		public ConstraintPosition(Transform transform)
		{
			this.transform = transform;
		}

		// Token: 0x060004C3 RID: 1219 RVA: 0x00014F8C File Offset: 0x0001338C
		public override void UpdateConstraint()
		{
			if (this.weight <= 0f)
			{
				return;
			}
			if (!base.isValid)
			{
				return;
			}
			this.transform.position = Vector3.Lerp(this.transform.position, this.position, this.weight);
		}

		// Token: 0x04000206 RID: 518
		public Vector3 position;
	}
}
